<%-- 
    Document   : admin
    Created on : 14-Apr-2008, 16:01:58
    Author     : Caroline
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome | UMAS | The Universal Meeting Administration System</title>
        <link rel="stylesheet" href="/UMAS/css/UMASStyles.css" type="text/css">
        <link rel="stylesheet" href="/UMAS/css/chooserStyles.css" type="text/css">
        <script type="text/javascript" src="/UMAS/scripts/safeOnLoad.js"></script>
        <script type="text/javascript" src="/UMAS/scripts/UMASUtils.js"></script>
    </head>
    <body id="umasMain">
        <%@include file="../jspf/header.jspf" %>
        <div id="mainPane">
            <%@include file="../jspf/sidebar.jspf" %>
            <div id="contentPane">
                <div id="titleB">
                    <h3><fmt:formatDate value="${sessionScope.date}" pattern="EEEE, d MMMM yyyy HH:mm:ss" /> </h3>
                </div>
                <div id="contentInner">
                    <h1>Admin Console</h1>
                    <div class="formTop"></div>
                    <div class="formBlock">
                        <h2>Add User</h2>
                        <form action='admin/AddUser' method="POST">
                            <p>Email<input type="text" name="email" value="" /></p>
                            <p>First Name<input type="text" name="firstName" value="" /></p>
                            <p>Surname<input type="text" name="surname" value="" /></p>
                            <p>Password<input type="password" name="password" value="" /></p>
                            <p><input type="submit" value="add User" name="addUser" /></p>
                        </form>
                    </div>
                    <div class="formBottom"></div>
                    <div class="formTop"></div>
                    <div class="formBlock">
                        <h2>Add Group</h2>
                        <form action='admin/AddGroup' method="POST"> 
                            <p>Group Name<input type="text" name="groupName" value="" /></p>
                            <p><input type="submit" value="Add Group" name="addGroup" /></p>
                        </form>
                    </div>
                    <div class="formBottom"></div>
                    <div class="formTop"></div>
                    <div class="formBlock">
                        <h2>Add User To Group</h2>
                        <form action='admin/UserGroup' method="POST">
                            <p>User Email<input type="text" name="groupEmail" value="" /></p>
                            <!--TODO change this to a drop down box -->
                            <p>Group Name<select name="groupToAdd">                     
                                    <c:forEach var="groupItem" items="${sessionScope.groupList}">                              
                                        <option><c:out value="${groupItem}"/>
                                        </option>
                                            </c:forEach>
                            </select><!--<input type="text" name="groupToAdd" value="" /> --></p>
                            <p><input type="submit" value="add User To group" name="addUserGroup" /></p>
                        </form>
                    </div>
                    <div class="formBottom"></div>
                </div>
            </div>
        </div>
        <%@include file="../jspf/footer.jspf" %>
    </body>
</html>
